﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class controls_front_TransSearch : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void search_Click(object sender, EventArgs e)
    {
        string selType = this.type.SelectedValue;
        string toUrl = "";

        //传递参数,重定向到显示结果的页面
        if (selType.Equals("1"))
        {
            toUrl = "provide.aspx";
        }
        else if (selType.Equals("2"))
        {
            toUrl = "need.aspx";
        }
        else if (selType.Equals("3"))
        {
            toUrl = "transHelp.aspx";
        }

        HttpContext.Current.Response.Redirect(
        Request.ApplicationPath + "\\" + toUrl + "?keyWord=" + this.keyWord.Text, true);
    }
}
